﻿using UnityEngine;
using System.Collections;

namespace AutoRoot
{
   public class Layer : ILayerMaskController
   {
      private string layerName;

      public Layer(string name)
      {
         layerName = name;
      }

      public LayerMask GetLayerMask()
      {
         return 1 << GetLayer();
      }

      public int GetLayer()
      {
         return LayerMask.NameToLayer(layerName);
      }
   }
}
